﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.DTO {
    /// <summary>
    /// oss临时token
    /// </summary>
    public class t_sts_token : result_base {
        /// <summary>
        /// OSS的访问ID
        /// </summary>
        public string accesskey_id { get; set; }
        /// <summary>
        /// OSS的访问密钥
        /// </summary>
        public string accesskey_secret { get; set; }
        /// <summary>
        /// 授权token
        /// </summary>
        public string token { get; set; }
        /// <summary>
        /// 过期时间
        /// </summary>
        public DateTime expiration { get; set; }
    }

    /// <summary>
    /// 删除文件请求
    /// </summary>
    public class t_delete_file_model : t_head_req {
        public t_delete_file_model() {
            file_names = new List<file_name_item>();
        }
        /// <summary>
        /// 文件名
        /// </summary>
        public List<file_name_item> file_names { get; set; }
    }

    public class t_file_name_item {
        public string file_name { get; set; }
    }

    /// <summary>
    /// oss临时token
    /// </summary>
    public class t_sts_token_ex {
        /// <summary>
        /// OSS的访问ID
        /// </summary>
        public string accesskey_id { get; set; }
        /// <summary>
        /// OSS的访问密钥
        /// </summary>
        public string accesskey_secret { get; set; }
        /// <summary>
        /// 授权token
        /// </summary>
        public string token { get; set; }
        /// <summary>
        /// 过期时间
        /// </summary>
        public DateTime expiration { get; set; }
    }
	/// <summary>
	/// 彩票请求接口参数
	/// </summary>
	public class caipiao_req { 
		/// <summary>
		/// 代理商在咕啦体育定制唯一编号
		/// </summary>
		public string appId { get; set; }
		/// <summary>
		/// md5(appId+secretKey)加密后的字符串
		/// </summary>
		public string accessToken { get; set; }
		/// <summary>
		/// 代理商下用户的手机号（将作为咕啦体育登陆账号）
		/// </summary>
		public string userTel { get; set; }
		/// <summary>
		/// 代理商系统用户唯一标示（用户编号）
		/// </summary>
		public string openId { get; set; }
		/// <summary>
		/// 咕啦体育系统唯一账号标示
		/// </summary>
		public string custNo { get; set; }
	}
	/// <summary>
	/// 彩票接口响应结果
	/// </summary>
	public class caipiao_res {
		public caipiao_res() {
			result = new result();
		}
		/// <summary>
		/// 返回编码（600:成功 100:参数缺失 101:appId不可用 102:IP鉴权失败、103: access_token验签失败）
		/// </summary>
		public int code { get; set; }
		/// <summary>
		/// 返回信息
		/// </summary>
		public string msg { get; set; }

		public result result { get; set; }
	}
	public class result {
		/// <summary>
		/// 咕啦体育用户唯一编号（与第三方用户对应）
		/// </summary>
		public string gl_cust_no { get; set; }
		/// <summary>
		/// 返回后跳转至咕啦体育的url地址
		/// </summary>
		public string gl_url { get; set; }
	}
}
